package dao;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;

import entities.Taxas;
import exceptions.CampoVazioException;
import exceptions.PorcentagemInvalidaException;

public interface DAO {



	public boolean loginIsValido(String login, String senha, Connection connection) throws CampoVazioException,
	SQLException, CampoVazioException;

	public void cadastrarCategoria(String categoria, boolean subcatetoria, Connection connection) throws CampoVazioException, SQLException;

	public void cadastrarSubCategoria(String categoria, String subCategoria, Connection connection) throws CampoVazioException, SQLException;

	public boolean primeiraExecucao(Connection connection) throws SQLException;

	public ArrayList<String> listarCategorias(boolean isSubCategoria, Connection connection) throws SQLException;

	//public ArrayList<String> listarSubCategorias(boolean categoria,  Connection connection) throws SQLException;

	public Taxas recuperaTaxas(Connection connection)  throws SQLException;

	public Taxas cadastrarTaxas(String multaAlug, String multaCond, String jurosAlug, String jurosCond, String tolerancia, Connection connection)
	throws CampoVazioException, PorcentagemInvalidaException, SQLException;

	public String recuperaCPF(String nome, Connection connection) throws SQLException;

}
